package com.javacore.day5;

import java.util.*;

public class NameCheck {

	public static void main(String[] args) {

		String bigName = " John McDonalds Harris    ";
		String[] names = bigName.trim().split(" ");
		System.out.println(String.format("FirstName: %s : LastName: %s",
				names[0], names[names.length - 1]));
	}
}